<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Page Header
 *
 * Load header for the page
 */
if ( ! function_exists('load_header'))
{
	function load_header()
	{
		$CI 		=& get_instance();
		$main_dir 	= 'public/'; 
		if ($CI->uri->segment(1) == PANEL_URL) {
			$main_dir = 'panel/';
		}

		echo $CI->load->view($main_dir.'layout/header');
	}
}

// ------------------------------------------------------------------------

/**
 * Page Content Footer
 *
 * Load content footer for the page
 */
if ( ! function_exists('load_content_footer'))
{
	function load_content_footer()
	{
		$CI 		=& get_instance();
		$main_dir 	= 'public/'; 
		if ($CI->uri->segment(1) == PANEL_URL) {
			$main_dir = 'panel/';
		}

		echo $CI->load->view($main_dir.'layout/content_footer');
	}
}

// ------------------------------------------------------------------------

/**
 * Page Content Footer
 *
 * Load content footer for the page
 */
if ( ! function_exists('load_navigator'))
{
	function load_navigator()
	{
		$CI 		=& get_instance();
		$main_dir 	= 'public/'; 
		if ($CI->uri->segment(1) == PANEL_URL) {
			$main_dir = 'panel/';
		}

		echo $CI->load->view($main_dir.'layout/navigator');
	}
}

// ------------------------------------------------------------------------

/**
 * Page Content Footer
 *
 * Load content footer for the page
 */
if ( ! function_exists('load_footer'))
{
	function load_footer()
	{
		$CI 		=& get_instance();
		$main_dir 	= 'public/'; 
		if ($CI->uri->segment(1) == PANEL_URL) {
			$main_dir = 'panel/';
		}

		echo $CI->load->view($main_dir.'layout/footer');
	}
}

// ------------------------------------------------------------------------

/**
 * Page Navigator
 *
 * Load navigator for the page
 */
if ( ! function_exists('load_navigator'))
{
	function load_footer()
	{
		$CI 		=& get_instance();
		$main_dir 	= 'public/'; 
		if ($CI->uri->segment(1) == PANEL_URL) {
			$main_dir = 'panel/';
		}

		echo $CI->load->view($main_dir.'layout/footer');
	}
}

// ------------------------------------------------------------------------